package com.jiang.service;

import com.jiang.bean.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TeaService {

    public int getTeaCount(@Param("name") String name);

    public List<Teacher> getAllTea(@Param("name")String name, @Param("pageStart")int pageStart, @Param("pageSize")int pageSize);

    public int addTea(Teacher teacher);

    public int deleteTea(int id);

    public int updataTea(Teacher teacher);

    public Teacher getUpdataTea(int id);

    public Teacher selectBynum(@Param("numno") String numno);
}
